using System.Windows.Forms;
using System.Threading;
using System.Drawing;
using System;
class zhu
{
	public static void Main()
	{
//	MessageBox.Show("You must enter a name.", "Name Entry Error",
//		MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
		Form form=new Form();		
		form.Text="MyFirstForm";
		form.MaximizeBox=false;
		form.BackColor=Color.White;
		form.FormBorderStyle=FormBorderStyle.Fixed3D;
		form.Paint+=new PaintEventHandler(Paint);

		Application.Run(form);
	}
	static void Paint(object obj,PaintEventArgs pea)
	{
		Console.WriteLine("Paint event");
		Form form=(Form)obj;
		Font font=form.Font;
		Brush brush=Brushes.Black;
		Graphics g=pea.Graphics;
		g.Clear(Color.Chocolate);
		g.DrawString("Hello World!",font,brush,0,0);
	}

}